package com.sat.goods.controller;

import com.baomidou.mybatisplus.extension.api.R;
import com.sat.goods.service.BrandService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("brand")
@AllArgsConstructor
public class BrandController {

    private final BrandService brandService;

    @GetMapping("findAll")
    public R list(){
        return R.ok(brandService.list());
    }


}
